home *** CD-ROM | disk | FTP | other *** search
- Program VbMbTest; {By Kurt Herzog, 6/10/92}
- {$R VBMB.RES}
- USES
- VerbosMB, {Verbose MessageBox Unit}
- Strings, {Nul-terminated string support}
- WinTypes, {Defines Windows API for Pascal}
- WinProcs, {Defines Func/Proc headers for API}
- {$IFDEF VER70}
- OWindows, {Defines standard window Object types}
- ODialogs; {Defines standard dialog Object types}
- {$ELSE}
- WObjects; {Defines all standard Object types}
- {$ENDIF}
-
- CONST
- id_Tfirst = 001; {String table IDs}
- id_Tlast = 015;
-
- TYPE
- ThisApplication = OBJECT(TApplication)
- PROCEDURE InitMainWindow; virtual;
- END;
-
- PTestWindow = ^TestWindow;
- TestWindow = OBJECT(TWindow)
- PROCEDURE wmLButtonUp(VAR Msg : TMessage); Virtual
- wm_First + wm_LButtonUp;
- END;
-
-
- PROCEDURE TestWindow.wmLButtonUp(VAR msg : TMessage);
- VAR
- args : RECORD
- StringArg : PChar;
- LongIntArg : LongInt;
- AnotherStr : PChar;
- CharArg : Char;
- filler : Char;
- IntArg : integer;
- END;
- BEGIN
- args.StringArg := '<< Insert this String >>';
- args.LongIntArg := GetTickCount;
- args.AnotherStr := 'Another string';
- args.CharArg := 'r';
- args.IntArg := -256;
- VerboseMessage (HWindow, id_Tfirst, id_Tlast, args, mb_Ok);
- END;
-
- PROCEDURE ThisApplication.InitMainWindow;
- BEGIN
- MainWindow := New(PTestWindow, Init(nil,
- 'Click for VerboseMB Test'));
- END;
-
- VAR ThisApp: ThisApplication;
- BEGIN
- ThisApp.Init('VbMbTest');
- Thisapp.Run;
- ThisApp.Done;
- END.